import request from '@/utils/request'

// 查询区域代理列表
export function listRegionAgent(query) {
  return request({
    url: '/ds/regionAgent/list',
    method: 'get',
    params: query
  })
}

// 查询区域代理详细
export function getRegionAgent(id) {
  return request({
    url: '/ds/regionAgent/' + id,
    method: 'get'
  })
}

// 新增区域代理
export function addRegionAgent(data) {
  return request({
    url: '/ds/regionAgent',
    method: 'post',
    data: data
  })
}

// 修改区域代理
export function updateRegionAgent(data) {
  return request({
    url: '/ds/regionAgent',
    method: 'put',
    data: data
  })
}

// 删除区域代理
export function delRegionAgent(id) {
  return request({
    url: '/ds/regionAgent/' + id,
    method: 'delete'
  })
}

// 导出区域代理
export function exportRegionAgent(query) {
  return request({
    url: '/ds/regionAgent/export',
    method: 'get',
    params: query
  })
}